package Vis;

public class Client {
    public static void main(String a[])
    {
        IProduct a1 = new Apple();
        IProduct a2 = new Apple();
        AVisitor visitor;

        BuyBasket basket = new BuyBasket();
        basket.addProduct(a1);

        visitor = new AVisitor() {
            @Override
            public void visit(Apple apple) {

            }
        };
        visitor.setName("");
        basket.accept(visitor);

    }

}
